<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<mesoBoard.Data.Smiley>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <% using(Html.BeginForm()){ %>
    
        <fieldset>
            <legend><%= Html.ThemeImage("smiley_cool.png") %> Edit Smiley</legend>
            
            <dl class="form">
            
                <dt>Smiley Image</dt>
                <dd>
                    <%= Model == null  ? "Image not found" : Html.Image("~/Images/Smilies/"+Model.ImageURL).ToString() %>
                    <%= Html.Spacer(3) %>
                    <%= Html.TextBox("ImageURL") %>
                    <%= Html.ValidationMessage("ImageURL") %>
                </dd>
                
                <dt>Code</dt>
                <dd>
                    <%= Html.TextBox("Code") %>
                    <%= Html.ValidationMessage("Code") %>
                </dd>
                
                <dt>Title</dt>
                <dd>
                    <%= Html.TextBox("Title") %>
                </dd>
                
                <dt>&nbsp;</dt>
                <dd>
                    <%= Html.Hidden("SmileyID") %>
                    <%= Html.Hidden("ImageURL") %>
                    <%= Html.SubmitButton("SaveChanges", "Save Changes") %>
                </dd>
                
            </dl>
            
        </fieldset>
    
    <% } %>

</asp:Content>
